python strftime microseconds

49

python strftime microseconds -

from datetime import datetime
now = datetime.now()
now.strftime("%H:%M:%S.%f")
'12:19:40.948000'

Comments

Submit
0 Comments